package com.mlh.springboot.config;

import com.mlh.springboot.bean.Furn01;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

/**
 * @author 缪林辉
 * @date 2024/2/28 21:15
 * @DESCRIPTION
 */
@Configuration
//导入 beans.xml
@ImportResource("classpath:beans.xml")

//@EnableConfigurationProperties(Furn.class)解读
//1、开启 Furn 配置绑定功能
//2、把 Furn 组件自动注册到容器中
@EnableConfigurationProperties(Furn01.class)
public class BeanConfig2 {

}
